package com.one.friend.domain.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.one.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
@TableName("tb_user_submit")
public class UserSubmit extends BaseEntity {

    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(type = IdType.ASSIGN_ID)
    private Long submitId;

    private Long questionId;

    private Long userId;

    private Long examId;

    private Integer programType;

    private String userCode;

    private Integer pass;

    private Integer score;

    private String exeMessage;

    private String caseJudgeRes;
}
